#ifndef _GDIGLOBAL_H
#define _GDIGLOBAL_H


bool DUI_API uiSaveImage(Image* bitmap, LPCTSTR lpszPath, uint8 nType);
bool DUI_API  uiSaveImage(Image* bitmap, LPCTSTR lpszPath);
bool DUI_API uiSaveImage(HBITMAP hBitmap, LPCTSTR lpszPath);
DUI_API Bitmap*  uiLoadImage(LPCTSTR lpszPath);
DUI_API Bitmap*  uiLoadImage(LPVOID lpData, long nSize);
DUI_API HBITMAP BitmapToHBITMAP(Bitmap* bitmap);
DUI_API Bitmap* CreateBitmapFromHBITMAP(HBITMAP hBitmap);
DUI_API HBITMAP RGB24ToHBITMAP(LPVOID lpData, int nWidth, int nHeight);


#endif